#pragma once
#include "BaseStrategy.h"
#include "Weapon.h"

class BeamShootStrategy : public BaseStrategy
{
public:
	BeamShootStrategy(void);
	~BeamShootStrategy(void);

	virtual bool init();

	virtual void parseXml( xml_node node );

	virtual void onEnter();

	virtual void onExit();

	void shoot(float dt);
	void startStrategy(CCNode* sender);

	CC_PROPERTY(Weapon*, _weapon, Weapon);
	CC_SYNTHESIZE(CCPoint, _positionShoot, PositionShoot);
	CC_SYNTHESIZE(CCPoint, _direct, Direct);
	CC_SYNTHESIZE(float, _angleOpen, AngleOpen);
	CC_SYNTHESIZE(int, _numberBullet, NumberBullet);
	CC_SYNTHESIZE(float, _timeDelay, TimeDelay);
	CC_SYNTHESIZE(float, _timeDelayStart, TimeDelayStart);

	CREATE_FUNC(BeamShootStrategy);
};

